package nl.hanze.designpatterns.Domain;

import java.io.Serializable;
import java.util.ArrayList;

public class Answer implements Serializable {

    public Question parent = null;

    private String text = "";

    public Answer() {

    }

    public Answer(Question parent) {
        parent.add(this);

    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    @Override
    public String toString() {
        return getText();
    }
}
